package com.frame.work.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frame.work.entity.ProductInfoApp;
import com.frame.work.entity.TblDeviceType;
import org.apache.ibatis.annotations.Select;

/**
 * @author wjming
 */

@DS("slave_3")
public interface ProductInfoAppMapper extends BaseMapper<ProductInfoApp> {
    /**
     * 查询设备信息
     *
     * @param deviceType
     * @return
     */
    @Select("select product_name,p_z_url from tbl_product_info_app where product_type=#{deviceType} and zdrw ='Y' and del_flag='0' limit 1")
    ProductInfoApp selectDeviceTypeMessage(String deviceType);
}